package vn.edu.saigontech.ncms.web.offering.report;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import vn.edu.saigontech.ncms.util.DateUtil;

public class DayScheduleDetail {
	private String day;
	private String date;
	private List<OfferingScheduleDetail> offeringSchedules = new ArrayList<OfferingScheduleDetail>();

	public DayScheduleDetail(Date date) {
		this.day = DateUtil.getDateOfWeekAsString(date);
		this.date = DateUtil.getDayOfMonth(date) + "-" + DateUtil.getMonthAsString(date);
	}
	
	public void addOfferingScheduleDetail(OfferingScheduleDetail detail) {
		this.offeringSchedules.add(detail);
	}

	public List<OfferingScheduleDetail> getOfferingSchedules() {
		return offeringSchedules;
	}

	public void setOfferingSchedules(
			List<OfferingScheduleDetail> offeringSchedules) {
		this.offeringSchedules = offeringSchedules;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
}
